/************************************************************************
 * @file StatusEventListener.h
 * @author Ian Chen
 * @version 1.0
 *
 * @section LICENSE
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
 * General Public License for more details at
 * http://www.gnu.org/licenses/lgpl.html
 ************************************************************************/

#ifndef STATUSEVENTLISTENER_H
#define STATUSEVENTLISTENER_H

#include <QString>
#include <plugin/plugin_global.h>

namespace antu
{
namespace plugin
{
//! Status listener for plugin framework initialization feedback.
/*! This is used by plug-ins to provide feedback in initialization
    stage.
 */
class PLUGINSHARED_EXPORT StatusEventListener
{
public:
    StatusEventListener();

    //! Callback method to handle feedback
    /*! Callback method used to process feedback information

      \param text Text content of framework initialization
      \param progress A progress completion indicator ranging from
                      0 to 100, where 100 means initialization
                      completion.
     */
    virtual void setStatusText(const QString& text, int progress) = 0;

};

}
}

#endif // STATUSEVENTLISTENER_H
